package com.luchao.springcloudapi.pojo;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@NoArgsConstructor
@Getter
@Setter
@Data
@Accessors(chain = true)  //链式写法
public class Dept implements Serializable {

    private Long deptNo;//主键
    private String dname;//部门名称
    private String db_Source;

    public Dept(String dname) {
        this.dname = dname;
    }

}
